package cn.tmall.servlet;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import cn.tmall.bean.User;
import cn.tmall.dao.UserDAO;
import cn.tmall.util.Page;

public class UserServlet extends BaseBackServlet{
	
	public String list(HttpServletRequest request,HttpServletResponse response,Page page){
		List<User> us = new UserDAO().list(page.getStart(),page.getCount());
		int total = new UserDAO().getTotal();
		page.setTotal(total);
		request.setAttribute("us", us);
		request.setAttribute("page", page);
		return "admin/listUser.jsp";
	}
}
